<?php

use Illuminate\Routing\Router;

Route::group([
    'prefix' => 'admin/BrandLevel',
    'namespace'     => 'Beerus\\Modules\\BrandLevel\\Controllers',
    'middleware'    => ['web', 'admin'],
], function (Router $router) {
    $router->get('/index','LevelController@index');
    $router->get('/index/{level}','LevelController@rights');
    $router->put('/index/{level}/{rights_on}','LevelController@rightsData');
    $router->put('/index/{level}/switch/{rights_on}','LevelController@rightsSwitch');

    $router->get('/leave','LevelRightsLeaveInfoController@index');
    $router->put('/leave/{id}','LevelRightsLeaveInfoController@save');
    $router->put('/leave/done/{id}','LevelRightsLeaveInfoController@done');
    $router->get('/leave/getPhone/{id}','LevelRightsLeaveInfoController@getphone');

});